package com.ruoyi.project.dataviewSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.dataviewSystem.mapper.VWarningPictureMapper;
import com.ruoyi.project.dataviewSystem.domain.VWarningPicture;
import com.ruoyi.project.dataviewSystem.service.IVWarningPictureService;

/**
 * 告警处理Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-02-13
 */
@Service
public class VWarningPictureServiceImpl implements IVWarningPictureService 
{
    @Autowired
    private VWarningPictureMapper vWarningPictureMapper;

    /**
     * 查询告警处理
     * 
     * @param id 告警处理ID
     * @return 告警处理
     */
    @Override
    public VWarningPicture selectVWarningPictureById(Long id)
    {
        return vWarningPictureMapper.selectVWarningPictureById(id);
    }

    /**
     * 查询告警处理列表
     * 
     * @param vWarningPicture 告警处理
     * @return 告警处理
     */
    @Override
    public List<VWarningPicture> selectVWarningPictureList(VWarningPicture vWarningPicture)
    {
        return vWarningPictureMapper.selectVWarningPictureList(vWarningPicture);
    }

    /**
     * 新增告警处理
     * 
     * @param vWarningPicture 告警处理
     * @return 结果
     */
    @Override
    public int insertVWarningPicture(VWarningPicture vWarningPicture)
    {
        return vWarningPictureMapper.insertVWarningPicture(vWarningPicture);
    }

    /**
     * 修改告警处理
     * 
     * @param vWarningPicture 告警处理
     * @return 结果
     */
    @Override
    public int updateVWarningPicture(VWarningPicture vWarningPicture)
    {
        return vWarningPictureMapper.updateVWarningPicture(vWarningPicture);
    }

    /**
     * 批量删除告警处理
     * 
     * @param ids 需要删除的告警处理ID
     * @return 结果
     */
    @Override
    public int deleteVWarningPictureByIds(Long[] ids)
    {
        return vWarningPictureMapper.deleteVWarningPictureByIds(ids);
    }

    /**
     * 删除告警处理信息
     * 
     * @param id 告警处理ID
     * @return 结果
     */
    @Override
    public int deleteVWarningPictureById(Long id)
    {
        return vWarningPictureMapper.deleteVWarningPictureById(id);
    }
}
